package cn.kattomy.shop.cart.vo;

import cn.kattomy.shop.product.vo.Product;

/**
 * 购物项对象
 * @author kattomy
 *
 */
public class CartItem {
	//商品对象
	private Product product;
	//商品数量
	private int count;
	//小计(该商品项的金额)
	private double subtotal;
	
	public Product getProduct() {
		return product;
	}
	public void setProduct(Product product) {
		this.product = product;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	//小计自动计算
	public double getSubtotal() {
		return count * product.getAct_price();
	}
//	public void setSubtotal(double subtotal) {
//		this.subtotal = subtotal;
//	}
	
}
